#!/usr/bin/env node

const addr = 'http://www.baidu.com';

http.get(addr,(res)=>{
    console.log(`HTTP/${res.httpVersion} ${res.statusCode}${res.statusMessage}`);

    console.log(res.headers);
    console.log();
    res.pipe(process.stdout);

});

